package com.ymt.bpm.engine.listener;

import org.activiti.engine.delegate.event.ActivitiEvent;
import org.activiti.engine.delegate.event.ActivitiEventListener;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Created by Johnny on 2016/12/23.
 * Process completion listener
 */
public class ProcessListener implements ActivitiEventListener {

    /**
     * Logger
     */
    private Logger logger = LoggerFactory.getLogger(this.getClass());

    private static ProcessListener instance;

    public static ProcessListener getInstance() {
        if (instance==null) {
            instance = new ProcessListener();
        }
        return instance;
    }

    @Override
    public void onEvent(ActivitiEvent activitiEvent) {

    }

    @Override
    public boolean isFailOnException() {
        return true;
    }

}
